import React, { Component } from 'react';

class Detail extends Component {
    componentDidMount(){
        // 获取动态路由参数
        // console.log( this.props.match.params );

        // 获取固定路由参数 state
        // console.log( this.props.location.state );

        // 获取固定路由参数 query
        // console.log( this.props.location.query );

        //发请求 获取商品的详情
    }
    render() {
        return (
            <div className='detail'>
                Detail
            </div>
        );
    }
}

export default Detail;